package com.elink.enginerring.domain;

import io.swagger.annotations.ApiParam;

import java.util.Date;
import java.util.List;

public class Postbar {
	
    private String postbarId; //主键
    
    @ApiParam(value="一级分类",required=true)
    private Integer tcId;//一级分类id

    @ApiParam(value="二级分类",required=true)
    private Integer scId;//二级分类id

    private String userId;  //提问人用户id

    @ApiParam(value="主题",required=true)
    private String title; //主题

    private Date time;   //时间

    @ApiParam(value="标签",required=true)
    private String labelIds; //标签

    @ApiParam(value="悬赏金，0表示无悬赏金",required=false,defaultValue="0")
    private Float price;  //悬赏金

    private Integer browseCount;//浏览次数

    private Integer collectionCount;  //收藏次数

    private Integer replyCount;   //回复数

    @ApiParam(value="上传图片的路径，以英文逗号进行分割",required=false)
    private String picturePath;   //图片路径

    private int solve;   //是否已经解决 0--全部 ，1--未解决 2--已解决

    @ApiParam(value="提醒方式,0--站内提醒，1--手机短信提醒，2--邮箱提醒,默认为0",required=true)
    private Byte remindType;// 提醒方式

    private Byte authStatus;// 审核状态 0--审核中  1--审核通过 2--未通过审核

    private Byte closeStatus;//关闭状态 0--未关闭 1--关闭

    @ApiParam(value="内容",required=true)
    private String content;//内容
    
	private int hierId;//体系Id
	
	private  int grade;//等级 ，1--初级，2--进阶
    
    //关联
    private List<Label> labList;//标签集合
    
    private Collection collection ; //收藏
    

    public String getPostbarId() {
        return postbarId;
    }

    public void setPostbarId(String postbarId) {
        this.postbarId = postbarId == null ? null : postbarId.trim();
    }

    public Integer getTcId() {
        return tcId;
    }

    public void setTcId(Integer tcId) {
        this.tcId = tcId;
    }

    public Integer getScId() {
        return scId;
    }

    public void setScId(Integer scId) {
        this.scId = scId;
    }

	public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getLabelIds() {
        return labelIds;
    }

    public void setLabelIds(String labelIds) {
        this.labelIds = labelIds == null ? null : labelIds.trim();
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getBrowseCount() {
        return browseCount;
    }

    public void setBrowseCount(Integer browseCount) {
        this.browseCount = browseCount;
    }

    public Integer getCollectionCount() {
        return collectionCount;
    }

    public void setCollectionCount(Integer collectionCount) {
        this.collectionCount = collectionCount;
    }

    public Integer getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(Integer replyCount) {
        this.replyCount = replyCount;
    }

    public String getPicturePath() {
        return picturePath;
    }

    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath == null ? null : picturePath.trim();
    }

    public int getSolve() {
		return solve;
	}

	public void setSolve(int solve) {
		this.solve = solve;
	}

	public Byte getRemindType() {
        return remindType;
    }

    public void setRemindType(Byte remindType) {
        this.remindType = remindType;
    }

    public Byte getAuthStatus() {
        return authStatus;
    }

    public void setAuthStatus(Byte authStatus) {
        this.authStatus = authStatus;
    }

    public Byte getCloseStatus() {
        return closeStatus;
    }

    public void setCloseStatus(Byte closeStatus) {
        this.closeStatus = closeStatus;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

	public List<Label> getLabList() {
		return labList;
	}

	public void setLabList(List<Label> labList) {
		this.labList = labList;
	}

	public int getHierId() {
		return hierId;
	}

	public void setHierId(int hierId) {
		this.hierId = hierId;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public Collection getCollection() {
		return collection;
	}

	public void setCollection(Collection collection) {
		this.collection = collection;
	}
}